﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace Passwords.ViewModels
{
    public class AboutViewModel : ViewModelBase
    {
        public string Version
        {
            get
            {
                Assembly assembly = Assembly.GetExecutingAssembly();
                return assembly.GetName().Version.ToString();
            }
        }

        public string Location
        {
            get
            {
                Assembly assembly = Assembly.GetExecutingAssembly();
                return Path.GetDirectoryName(assembly.Location);
            }
        }
    }
}
